package com.fjc.cloud.order;

import com.fjc.cloud.order.config.DefaultFeignConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients(defaultConfiguration = DefaultFeignConfiguration.class) // 启用 Feign 客户端 替代@RestController
@MapperScan("com.fjc.cloud.order.mapper")
@SpringBootApplication //SpringBootConfiguration + @EnableAutoConfiguration + @ComponentScan
public class OrderApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(OrderApplication.class,args);
    }
}
